import request from '@/libs/request';
// 获取藏品支付url
export const getPayUrl = (params: { zzbdexCerId: string, uuid: string, callBackUrl: string }) => {
  const { zzbdexCerId, uuid, callBackUrl } = params;
  const data = { userId: zzbdexCerId, userName: zzbdexCerId, callBackUrl: callBackUrl };
  return request.post(`/n-admin-api/test/outer/zzqs/zzqsToPay/${zzbdexCerId}/${uuid}`, data);
};

export const getTicket = (params: { zzbdexCerId: string, uuid: string }) => {
  const { zzbdexCerId, uuid } = params;
  return request.get(`/n-admin-api/test/outer/zzqs/zzqsGetCert/${zzbdexCerId}/${uuid}`);
};
// 获取藏品详情
export const getCollectInfo = (id: string) => {
  return request.get(`/n-admin-api/test/outer/zzqs/zzqsGetPayBefore/${id}`);
};


// // 获取藏品详情 /employeeHonor/list
// export const getEmployeeHonor = (data) => {
//   return request.post(`/n-admin-api/test/outer/employeeHonor/list`, data);
// };
export const getTestHome = (id: string) => {
  return request.get(`/mine`);
};
